#
# Be sure to run `pod lib lint LBReactNative.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
    s.name             = 'LBReact'
    s.version          = '0.58.6.1'
    s.summary          = 'A short description of LBReact.'
    
    # This description is used to generate tags and improve search results.
    #   * Think: What does it do? Why did you write it? What is the focus?
    #   * Try to keep it short, snappy and to the point.
    #   * Write the description between the DESC delimiters below.
    #   * Finally, don't worry about the indent, CocoaPods strips it!
    
    s.description      = <<-DESC
    TODO: Add long description of the pod here.
    DESC
    
    s.homepage         = 'https://github.com/408939786@qq.com/LBReact'
    # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
    s.license          = { :type => 'MIT', :file => 'LICENSE' }
    s.author           = { '408939786@qq.com' => 'shwu1@i9i8.com' }
    s.source           = { :git => 'https://gitee.com/azazie_specs/react-native.git', :tag => s.version.to_s }
    # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
    
    s.ios.deployment_target = '9.0'
    
    s.default_subspec = 'Core'
    
    s.subspec 'Core' do |ss|
        
        ss.source_files = 'LBReact/Classes/Core/**/*', 'LBReact/Classes/Core/**/**/*'
        ss.public_header_files = 'LBReact/Classes/Core/**/*.h', 'LBReact/Classes/Core/**/**/*.h'
        
        react_version = '0.58.6'
        ss.dependency 'Yoga', "#{react_version}.React"
        ss.dependency 'React/Core', "#{react_version}"
        #ss.dependency 'React/BatchedBridge', "#{react_version}"
        ss.dependency 'React/CxxBridge', "#{react_version}"
        #ss.dependency 'React/jschelpers', "#{react_version}"
        ss.dependency 'React/DevSupport', "#{react_version}"
        ss.dependency 'React/RCTImage', "#{react_version}"
        ss.dependency 'React/RCTNetwork', "#{react_version}"
        ss.dependency 'React/RCTText', "#{react_version}"
        ss.dependency 'React/RCTWebSocket', "#{react_version}"
        ss.dependency 'React/RCTAnimation', "#{react_version}"
        ss.dependency 'React/RCTLinkingIOS', "#{react_version}"
        ss.dependency 'React/ART', "#{react_version}"
        
        ss.dependency 'LBFoundation'
        ss.dependency 'LBUIKit'
        ss.dependency 'LBUIKit/FDFullscreenPopGesture'
        ss.dependency 'LBDebug'
        ss.dependency 'LBWebView'
        
    end
    
    # s.subspec 'Core' do |ss|
    
    #   ss.source_files = 'LBReact/Classes/Core/**/*', 'LBReact/Classes/Core/**/**/*'
    #   ss.public_header_files = 'LBReact/Classes/Core/**/*.h', 'LBReact/Classes/Core/**/**/*.h'
    
    #   react_version = '0.53.3'
    #   ss.dependency 'Yoga', "#{react_version}.React"
    #   ss.dependency 'React/Core', "#{react_version}"
    #   ss.dependency 'React/BatchedBridge', "#{react_version}"
    #   ss.dependency 'React/CxxBridge', "#{react_version}"
    #   ss.dependency 'React/jschelpers', "#{react_version}"
    #   ss.dependency 'React/DevSupport', "#{react_version}"
    #   ss.dependency 'React/RCTImage', "#{react_version}"
    #   ss.dependency 'React/RCTNetwork', "#{react_version}"
    #   ss.dependency 'React/RCTText', "#{react_version}"
    #   ss.dependency 'React/RCTWebSocket', "#{react_version}"
    #   ss.dependency 'React/RCTAnimation', "#{react_version}"
    #   ss.dependency 'React/RCTLinkingIOS', "#{react_version}"
    #   ss.dependency 'React/ART', "#{react_version}"
    
    #   ss.dependency 'LBFoundation'
    #   ss.dependency 'LBUIKit'
    #   ss.dependency 'LBUIKit/FDFullscreenPopGesture'
    #   ss.dependency 'LBDebug'
    #   ss.dependency 'LBWebView'
    
    # end
    
    # s.subspec '0.49.5.Core' do |ss|
    #   ss.source_files = 'LBReact/Classes/Core/**/*', 'LBReact/Classes/Core/**/**/*'
    #   ss.public_header_files = 'LBReact/Classes/Core/**/*.h', 'LBReact/Classes/Core/**/**/*.h'
    
    #   react_version = '0.49.5'
    #   ss.dependency 'Yoga', "#{react_version}.React"
    #   ss.dependency 'React/Core', "#{react_version}"
    #   ss.dependency 'React/BatchedBridge', "#{react_version}"
    #   ss.dependency 'React/CxxBridge', "#{react_version}"
    #   ss.dependency 'React/jschelpers', "#{react_version}"
    #   ss.dependency 'React/DevSupport', "#{react_version}"
    #   ss.dependency 'React/RCTImage', "#{react_version}"
    #   ss.dependency 'React/RCTNetwork', "#{react_version}"
    #   ss.dependency 'React/RCTText', "#{react_version}"
    #   ss.dependency 'React/RCTWebSocket', "#{react_version}"
    #   ss.dependency 'React/RCTAnimation', "#{react_version}"
    #   ss.dependency 'React/RCTLinkingIOS', "#{react_version}"
    #   ss.dependency 'React/ART', "#{react_version}"
    
    #   ss.dependency 'LBFoundation'
    #   ss.dependency 'LBShare'
    #   ss.dependency 'LBWebView'
    #   ss.dependency 'LBUIKit/FDFullscreenPopGesture'
    #   ss.dependency 'LBUIKit'
    
    # end
    # s.subspec '0.42.0.Core' do |ss|
    #   ss.source_files = 'LBReact/Classes/Core/**/*', 'LBReact/Classes/Core/**/**/*'
    #   ss.public_header_files = 'LBReact/Classes/Core/**/*.h', 'LBReact/Classes/Core/**/**/*.h'
    
    #   react_version = '0.42.0'
    #   ss.dependency 'Yoga', "#{react_version}.React"
    #   ss.dependency 'React/Core', "#{react_version}"
    #   ss.dependency 'React/RCTImage', "#{react_version}"
    #   ss.dependency 'React/RCTNetwork', "#{react_version}"
    #   ss.dependency 'React/RCTText', "#{react_version}"
    #   ss.dependency 'React/RCTWebSocket', "#{react_version}"
    #   ss.dependency 'React/RCTAnimation', "#{react_version}"
    
    #   ss.dependency 'LBFoundation'
    #   ss.dependency 'LBUIKit'
    
    # end
    
    # s.subspec 'Router' do |ss|
    #     ss.source_files = 'LBReact/Classes/Router/**/*'
    #     ss.public_header_files = 'LBReact/Classes/Router/**/*.h'
        
    #     ss.dependency 'LBReact/Core'
    #     ss.dependency 'LBRouter'
        
    # end
    
    # s.subspec 'Statistics' do |ss|
    #     ss.source_files = 'LBReact/Classes/Statistics/**/*'
    #     ss.public_header_files = 'LBReact/Classes/Statistics/**/*.h'
        
    #     ss.dependency 'LBReact/Core'
    #     ss.dependency 'LBStatistics'
        
    # end
    
    s.subspec 'NativeMixed' do |ss|
        ss.source_files = 'LBReact/Classes/NativeMixed/**/*', 'LBReact/Classes/Core/**/**/*'
        ss.public_header_files = 'LBReact/Classes/NativeMixed/**/*.h', 'LBReact/Classes/Core/**/**/*.h'
        
        ss.dependency 'LBReact/Core'
        ss.dependency 'LBUIKit/FDFullscreenPopGesture'
        ss.dependency 'LBRouter'
        
    end
    
end
